<@mits.headerDiv />

   <script type='text/javascript' src='${base}/dwr/interface/trackLogMgr.js'></script>
  <script type='text/javascript' src='${base}/dwr/engine.js'></script>
  <script type='text/javascript' src='${base}/dwr/util.js'></script>
<div class="Main" id="Main">
	<!--屏幕切换-->
	<!--左边-->
	<!--右边-->
	<div class="Main_body" id="Main_body">
		<div class="Main_right_top">
		  <div class="Main_bodyListBar_head">搜索条件 </div>
		 <br>
		 <form method="post" action="" id="myform" name="myform">
		<input type="hidden" name="surveillance.id" id="surveillance.id" />
		 	<table border="0" cellspacing="1" cellpadding="0" class="addTable" >
                <tr>
                    <td >号牌种类：</td>
 					<td class="content" >
			              <select width="50" id="searchDto.plateType" name="searchDto.plateType" value="${searchDto.plateType?if_exists?html}">
					<option value="">全部</option>		
					<option value="大型汽车" <#if searchDto.plateType?exists&&searchDto.plateType=="大型汽车">selected</#if> >大型汽车</option>
					<option value="小型汽车" <#if searchDto.plateType?exists&&searchDto.plateType=="小型汽车">selected</#if> >小型汽车</option>
					<option value="使馆汽车" <#if searchDto.plateType?exists&&searchDto.plateType=="使馆汽车">selected</#if> >使馆汽车</option>	
					<option value="领馆汽车" <#if searchDto.plateType?exists&&searchDto.plateType=="领馆汽车">selected</#if> >领馆汽车</option>
					<option value="境外汽车" <#if searchDto.plateType?exists&&searchDto.plateType=="境外汽车">selected</#if> >境外汽车</option>
					<option value="外籍汽车" <#if searchDto.plateType?exists&&searchDto.plateType=="外籍汽车">selected</#if> >外籍汽车</option>	
					<option value="普通摩托车" <#if searchDto.plateType?exists&&searchDto.plateType=="普通摩托车">selected</#if> >普通摩托车</option>	
					<option value="轻便摩托车" <#if searchDto.plateType?exists&&searchDto.plateType=="轻便摩托车">selected</#if> >轻便摩托车</option>	
					<option value="使馆摩托车" <#if searchDto.plateType?exists&&searchDto.plateType=="使馆摩托车">selected</#if> >使馆摩托车</option>	
					<option value="领馆摩托车" <#if searchDto.plateType?exists&&searchDto.plateType=="领馆摩托车">selected</#if> >领馆摩托车</option>	
					<option value="境外摩托车" <#if searchDto.plateType?exists&&searchDto.plateType=="境外摩托车">selected</#if> >境外摩托车</option>	
					<option value="外籍摩托车" <#if searchDto.plateType?exists&&searchDto.plateType=="外籍摩托车">selected</#if> >外籍摩托车</option>	
					<option value="农用运输车" <#if searchDto.plateType?exists&&searchDto.plateType=="农用运输车">selected</#if> >农用运输车</option>
					<option value="拖拉机" <#if searchDto.plateType?exists&&searchDto.plateType=="拖拉机">selected</#if> >拖拉机</option>	
					<option value="挂车" <#if searchDto.plateType?exists&&searchDto.plateType=="挂车">selected</#if> >挂车</option>	
					<option value="教练汽车" <#if searchDto.plateType?exists&&searchDto.plateType=="教练汽车">selected</#if> >教练汽车</option>	
					<option value="教练摩托车" <#if searchDto.plateType?exists&&searchDto.plateType=="教练摩托车">selected</#if> >教练摩托车</option>	
					<option value="试验汽车" <#if searchDto.plateType?exists&&searchDto.plateType=="试验汽车">selected</#if> >试验汽车</option>	
					<option value="试验摩托车" <#if searchDto.plateType?exists&&searchDto.plateType=="试验摩托车">selected</#if> >试验摩托车</option>	
					<option value="临时入境汽车" <#if searchDto.plateType?exists&&searchDto.plateType=="临时入境汽车">selected</#if> >临时入境汽车</option>
					<option value="临时入境摩托车" <#if searchDto.plateType?exists&&searchDto.plateType=="临时入境摩托车">selected</#if> >临时入境摩托车</option>
					<option value="临时行驶车" <#if searchDto.plateType?exists&&searchDto.plateType=="临时行驶车">selected</#if> >临时行驶车</option>	
					<option value="警用汽车" <#if searchDto.plateType?exists&&searchDto.plateType=="警用汽车">selected</#if> >警用汽车</option>	
					<option value="警用摩托" <#if searchDto.plateType?exists&&searchDto.plateType=="警用摩托">selected</#if> >警用摩托</option>	
					<option value="其它" <#if searchDto.plateType?exists&&searchDto.plateType=="其它">selected</#if> >其它</option>	
					</select>	
					</td>
                    <td >车牌号码：</td>
                  	<td >
	<select id="searchDto.plateNumberPrefix" name="searchDto.plateNumberPrefix" onclick="prvClick()" onchange="prvChange()">
	<option value="浙" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="浙">selected</#if>>浙</option>
							<option value="京"  <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="京">selected</#if>>京</option>	
							<option value="沪" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="沪">selected</#if>>沪</option>	
							<option value="津" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="津">selected</#if>>津</option>	
							<option value="渝" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="渝">selected</#if>>渝</option>	
							<option value="冀" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="冀">selected</#if>>冀</option>
							<option value="晋" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="晋">selected</#if>>晋</option>
							<option value="蒙" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="蒙">selected</#if>>蒙</option>	
							<option value="辽" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="辽">selected</#if>>辽</option>	
							<option value="吉" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="吉">selected</#if>>吉</option>	
							<option value="黑" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="黑">selected</#if>>黑</option>	
							<option value="苏" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="苏">selected</#if>>苏</option>	
							<option value="皖" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="皖">selected</#if>>皖</option>
							<option value="闽" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="闽">selected</#if>>闽</option>	
							<option value="赣" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="赣">selected</#if>>赣</option>	
							<option value="鲁" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="鲁">selected</#if>>鲁</option>	
							<option value="豫" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="豫">selected</#if>>豫</option>	
							<option value="鄂" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="鄂">selected</#if>>鄂</option>	
							<option value="湘" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="湘">selected</#if>>湘</option>
							<option value="粤" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="粤">selected</#if>>粤</option>	
							<option value="桂" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="桂">selected</#if>>桂</option>	
							<option value="琼" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="琼">selected</#if>>琼</option>	
							<option value="川" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="川">selected</#if>>川</option>	
							<option value="贵" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="贵">selected</#if>>贵</option>	
							<option value="滇" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="滇">selected</#if>>滇</option>
							<option value="藏" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="藏">selected</#if>>藏</option>	
							<option value="陕" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="陕">selected</#if>>陕</option>	
							<option value="甘" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="甘">selected</#if>>甘</option>	
							<option value="宁" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="宁">selected</#if>>宁</option>	
							<option value="青" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="青">selected</#if>>青</option>	
							<option value="新" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="新">selected</#if>>新</option>	
							<option value="港" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="港">selected</#if>>港</option>
							<option value="澳" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="澳">selected</#if>>澳</option>	
							<option value="台" <#if searchDto.plateNumberPrefix?exists&&searchDto.plateNumberPrefix=="台">selected</#if>>台</option>				       				
					</select>
					<input type="text"  id="searchDto.plateNumberSufix" size="12" name="searchDto.plateNumberSufix" 
					onKeypress="if (((event.keyCode>= 32 && event.keyCode < 48 ) && event.keyCode != 42)  
					 || (event.keyCode > 57 && event.keyCode < 65) || (event.keyCode > 90 && event.keyCode < 97) || (event.keyCode >= 123 && event.keyCode <= 126)) event.returnValue = false;"
					 maxlength="6"
					 onKeyUp="check()" value="${searchDto.plateNumberSufix?if_exists}" />  
					</td>
					 <td >布控类别：</td>
                  	<td >
					<select width="50"  id="searchDto.surveillanceType" name="searchDto.surveillancType">
					<option value="1">24小时内违法数据</option>
					</select> 
					</td>
			   </tr>
                
			    <tr>
                    <td >布控时间:</td>
                  	<td colspan="3" >
					 <input type="text" class="input_calendar" readonly onclick="displayCalendar('',$('searchDto.startDate'),'yyyy-mm-dd',this)" name="searchDto.startDate" id="searchDto.startDate" value="<#if  searchDto.startDate?exists>${searchDto.startDate?if_exists}</#if>"/>
					 <select id="searchDto.startHour" name="searchDto.startHour">
					<#list 0..23 as i>　
					<option value="${i}" <#if searchDto.startHour?exists && searchDto.startHour?if_exists== i>selected</#if>>${i}</option>
					</#list>				
					</select>时
					<select id="searchDto.startMinute" name="searchDto.startMinute">
					<#list 0..59 as j>　
					<option value="${j}" <#if searchDto.startMinute?exists && searchDto.startMinute?if_exists== j>selected</#if>>${j}</option>
					</#list>				
					</select>分
					 ~ 
					<input type="text" class="input_calendar" readonly onclick="displayCalendar('',$('searchDto.endDate'),'yyyy-mm-dd',this)" name="searchDto.endDate" id="searchDto.endDate" value="<#if searchDto.endDate?exists>${searchDto.endDate?if_exists}</#if>"/>
				 <select id="searchDto.endHour" name="searchDto.endHour">
					<#list 0..23 as m>　
					<option value="${m}" <#if searchDto.endHour?exists &&  searchDto.endHour?if_exists== m>selected</#if>>${m}</option>
					</#list>				
					</select>时
					<select id="searchDto.endMinute" name="searchDto.endMinute">
					<#list 0..59 as n>　
					<option value="${n}" <#if searchDto.endMinute?exists &&  searchDto.endMinute?if_exists== n>selected</#if>>${n}</option>
					</#list>				
					</select>分				
					</td>
                     
                  	 
					 <td >&nbsp;</td>  
					 <td ><input type="button"  value="查询" class="button" onclick="search(0)"/></td>                  
			   </tr>
 				            	   
			 </table >
		</form>		</div>
		<div class="Main_right_line"></div>
		
		  <div class="Main_bodyListBar">
				<div class="Main_bodyListBar_head"><span>已布控黑名单列表</span></div>
				
				
	    <div class="Main_bodyListBar_body">
	  
				  <table border="0" cellpadding="0" cellspacing="0" class="listTable">
					<tr align="center">
					  <th  >车牌号码</th>
					  <th  >号牌种类</th>
					  <th  >布控类别</th>
					  <th  >布控起始时间</th>
					  <th  >布控截止时间</th>
					  <th  >布控单位</th>
					  <th  >操作</th>
					  <th  ></th>
					</tr>
					<#if surveillanceResult?exists>
                <#assign surveillances = surveillanceResult.content>
                <#assign  index = 0>
                <#list surveillances as surveillance>
                 
					<tr onmouseover="listTable_trMouseOver(this)" onmouseout="listTable_trMouseOut(this)">					 					
				      <td>${surveillance?if_exists.plateNumber?if_exists}</td> 
					  <td>${surveillance?if_exists.plateType?if_exists}</td>
					  <td>${surveillance?if_exists.surveillanceTypeStr?if_exists}&nbsp;</td>
					  <td>${surveillance?if_exists.startingDate?if_exists}&nbsp;</td>
					  <td>${surveillance?if_exists.expiringDate?if_exists}&nbsp;</td>
					  <td>${surveillance?if_exists.surveillancDept?if_exists.departmentName?if_exists}&nbsp;</td>
					 <td>
					  <a href="javascript:onClick=detail('${surveillance?if_exists.id?if_exists}')">详情</a>
					  <a href="javascript:onClick=do_Cancel('${surveillance?if_exists.id?if_exists}')">撤控</a>
					 </td>
					</tr>
					 <#assign  index = index+1>
					</#list>
			 <@mpage.fillLine pageSize, surveillanceResult.content.size(), 8/>
                <tr class="foot">
                  <td colspan="8">
                    <#assign page = surveillanceResult.page>
                    <script language = 'JavaScript'>
                        function changePage(cpage){
                            search(cpage);
                        }
                    </script>
                    <@mpage.showPageInfo page/>
                  &nbsp;</td>
                </tr>
                </#if>
				  </table>
		
			</div>
				<div class="Main_bodyListBar_bottom">
				  <div class="Main_bodyListBar_button">
				  </div>
					
				</div>
			<div class="Main_bodyListBar_foot"></div>
		  </div>
		</div>
	
</div>
<script lanague ="javascript">
function check(){
 var pValue = $('searchDto.plateNumberSufix').value;
if(pValue.indexOf("'")!=-1){
$('searchDto.plateNumberSufix').value=pValue.substr(0,pValue.length-1)
}
}
 function prvClick() {
 if($('searchDto.plateNumberPrefix').options[0].selected == true) {
  $('searchDto.plateNumberSufix').value = $('searchDto.plateNumberPrefix').value  
 }

 }
 function prvChange() {

  $('searchDto.plateNumberSufix').value = $('searchDto.plateNumberPrefix').value
 }
 function search(cpage) {
 	trimAllElements($('myform'));
    if(Validator.Validate($('myform'),3)){
  	    $('myform').action = "${base}/auth/surveillance/searchCancel.action?cleanSucMsg=true&currentPage="+cpage;
  		$('myform').submit();
    }		
 }
 function do_Cancel(id) {
        $("surveillance.id").value=id;
  	    $('myform').action = "${base}/auth/surveillance/doCancel.action?cleanSucMsg=true";
  		$('myform').submit();
 }
 function detail(surveillanceID) {
  window.showModalDialog("${base}/auth/surveillance/detailSurveillance.action?surveillanceID="+surveillanceID,"布控详细信息","dialogWidth=700px;dialogHeight=500px"); 
  
 }
</script>
<@mits.footerDiv />


